Filter hook '{$adjacent}_image_link'
in WP Core File wp-includes/media.php at line 3824
Description
Filters the adjacent image link. The dynamic portion of the hook name, `$adjacent`, refers to the type of adjacency, either 'next', or 'previous'. Possible hook names include: - `next_image_link` - `previous_image_link`
Occurrences
Filename |
Line Number |
wp-includes/media.php |
3824 |
Parameters
Type |
Name |
Description |
string |
$output |
Adjacent image HTML markup. |
int |
$attachment_id |
Attachment ID |
string|int[] |
$size |
Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order). |
string |
$text |
Link text. |
PHP Doc
/**
* Filters the adjacent image link.
*
* The dynamic portion of the hook name, `$adjacent`, refers to the type of adjacency,
* either 'next', or 'previous'.
*
* Possible hook names include:
*
* - `next_image_link`
* - `previous_image_link`
*
* @since 3.5.0
*
* @param string $output Adjacent image HTML markup.
* @param int $attachment_id Attachment ID
* @param string|int[] $size Requested image size. Can be any registered image size name, or
* an array of width and height values in pixels (in that order).
* @param string $text Link text.
*/